package com.wcs.spring.entity;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import com.wcs.spring.util.CustomDateSerializer;

public class User {
	private Integer id;

	private String userName;

	private String password;

	private String sex;

	private Integer age;

	private String telNo;

	private String mobile;

	private String userType;

	private String address;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date onlineStartDate;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date onlineEndDate;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date offlineStartDate;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date offlineEndDate;

	private String schoolIdName;

	private String schoolName;

	private String majorName;

	private Integer studentLevel;

	private String chineseName;

	private String englishName;

	private Integer schoolId;

	private Date createTime;

	private Date updateTime;

	private String createUser;

	private String updateUser;

	private Integer flag;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getTelNo() {
		return telNo;
	}

	public void setTelNo(String telNo) {
		this.telNo = telNo;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getOnlineStartDate() {
		return onlineStartDate;
	}

	public void setOnlineStartDate(Date onlineStartDate) {
		this.onlineStartDate = onlineStartDate;
	}

	public Date getOnlineEndDate() {
		return onlineEndDate;
	}

	public void setOnlineEndDate(Date onlineEndDate) {
		this.onlineEndDate = onlineEndDate;
	}

	public Date getOfflineStartDate() {
		return offlineStartDate;
	}

	public void setOfflineStartDate(Date offlineStartDate) {
		this.offlineStartDate = offlineStartDate;
	}

	public Date getOfflineEndDate() {
		return offlineEndDate;
	}

	public void setOfflineEndDate(Date offlineEndDate) {
		this.offlineEndDate = offlineEndDate;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public String getMajorName() {
		return majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}

	public Integer getStudentLevel() {
		return studentLevel;
	}

	public void setStudentLevel(Integer studentLevel) {
		this.studentLevel = studentLevel;
	}

	public String getChineseName() {
		return chineseName;
	}

	public void setChineseName(String chineseName) {
		this.chineseName = chineseName;
	}

	public String getEnglishName() {
		return englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	public Integer getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Integer schoolId) {
		this.schoolId = schoolId;
	}

	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getSchoolIdName() {
		return schoolIdName;
	}

	public void setSchoolIdName(String schoolIdName) {
		this.schoolIdName = schoolIdName;
	}

}
